TSAccountProtection

object TSAccountProtection

Account protection user API

Functions

Link copied to clipboard
fun clearUser()

Clears the user context for all subsequent events in the application session

Link copied to clipboard
fun init(context: Context, clientID: String)
fun init(    context: Context,     baseUrl: String,     clientID: String)
fun init(    context: Context,     baseUrl: String,     clientID: String,     userID: String? = null)

Initializes the SDK, which starts automatically tracking and submitting info of the user journey.

Link copied to clipboard
fun setUserID(userID: String)

Sets the user context for all subsequent events in the session (or until the user is explicitly cleared) It should be set only after you've fully authenticated the user (including, for example, any 2FA that was required).

Link copied to clipboard
fun triggerAction(actionType: String, callback: ITransmitSecurityTriggerActionEventCallback?)
fun triggerAction(    actionType: String,     options: ActionEventOptions?,     callback: ITransmitSecurityTriggerActionEventCallback?)

Reports a user actionType event to the SDK. The different action types are predefined in the Account Protection server.